<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>文件上传页面</title>
		<!-- css样式-->
		<link rel="stylesheet" href="../layui/css/layui.css" />
		<style>
			.layui-upload-img {
			    width: 92px;
			    height: 92px;
			    margin: 0 10px 10px 0;
			}
		</style>
		<!-- js文件-->
		<script language="javascript" type="text/javascript" src="../layui/layui.all.js"></script>
		<script src="../js/FileUpload.js"></script>
	</head>
	<body>
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
			<legend>常规使用：普通图片上传</legend>
		</fieldset>

		<div class="layui-upload">
			<button type="button" class="layui-btn" id="test1">上传图片</button>
			<div class="layui-upload-list">
				<img class="layui-upload-img" id="demo1">
				<p id="demoText"></p>
			</div>
		</div>

		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
			<legend>上传多张图片</legend>
		</fieldset>
		<div class="layui-upload">
			<button type="button" class="layui-btn" id="test2">多图片上传</button>
			<blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
				预览图：
				<div class="layui-upload-list" id="demo2"></div>
			</blockquote>
		</div>
	</body>
</html>
